// import { get } from '../utils/request'
import { get, post } from '../utils/request'
// import {post} from "axios";

export const tagList = (params) => {
  return get('/basic/tagLibrary/info/user/tags', params)
}

export const contentTagList = (params) => {
  return get('/basic/tagLibrary/info/article/tags', params)
}

// 获取标签列表
export const getTagList = (params) => {
  return post('/admin/basic/tag/pageList', params)
}
//新增标签
export const addTag = (params) => {
  return post('/admin/basic/tag/addTag', params)
}
// 编辑--删除、修改标签
export const tagEdit = (data) => {
  return post('/admin/basic/tag/edit', data)
}
// 标签--根据id查询标签的信息
export const getTagInfo = (id) => {
  return get(`/admin/basic/tag/getTagInfo/${id}`)
}

export const getTagTypeList = (params) => {
  return get(`/admin/basic/tagType/tagTypeList`, params)
}


export const tagTypeUpdate = (params) => {
  return post(`/admin/basic/tagType/updateTagType`, params)
}

export const tagTypeAdd = (params) => {
  return post(`/admin/basic/tagType/addTagType`, params)
}


export const getTagByName = (tagName) => {
  return get(`/admin/basic/tag/getTagByName/${tagName}`)
}